package com.example.demo.struct.bridge;

/**
 * @Desc:
 * @Author zzz
 * @Date 2021/2/24
 * @Version V1.0
 */
public class BridgeTest {
    public static void main(String[] args) {
        ConnectBridge connectBridge = new ConnectBridge();
        Driver mysqlDriver = new MySqlDriver();
        Driver oracleDriver = new OracleDriver();

        connectBridge.setDriver(mysqlDriver);
        connectBridge.connect();

        connectBridge.setDriver(oracleDriver);
        connectBridge.connect();
    }
}
